import Vue from 'vue'
import Router from 'vue-router'
import Login from '../views/Login'
import Index from "../views/Index";
import UserList from "../views/users/UserList";
import AddUser from "../views/users/AddUser";
import List from "../views/menu/List";
import AddMenu from "../views/menu/AddMenu";
import RoleList from "../views/role/RoleList";
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/userList',
      name: 'UserList',
      component: UserList
    },
    {
      path: '/addUser',
      name: 'AddUser',
      component: AddUser
    },
    {
      path:'/mlist',
      name:'List',
      component:List
    },
    {
      path:'/addMenu',
      name:'AddMenu',
      component:AddMenu
    },
    {
      path:'/role',
      name:'RoleList',
      component:RoleList
    },
  ]
})
